<?php

use think\facade\Route;

Route::group(function () {
   Route::get('/getBanner', 'home/getBanner');
   Route::get('/getArticleIndex', 'home/getArticleIndex');
   Route::get('/getArticleByIndex/:id', 'home/getArticleByIndex');

   Route::get('/getDiscuss', 'home/getDiscuss');
   Route::get('/getDiscussDetail/:id', 'home/getDiscussDetail');

   Route::group(function () {
       Route::post('/forum/reply', 'home/reply');
       Route::post('/nav/getCurrentUser', 'home/getCurrentUser');
   })->middleware(\app\middleware\Auth::class);
})->middleware(\app\middleware\Cross::class);

